home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: pcgpe@ix.netcom.com(Mark Feldman)
- Newsgroups: comp.lang.c++
- Subject: Re: Drawing from any procedure
- Date: 23 Mar 1996 08:07:04 GMT
- Organization: Netcom
- Message-ID: <4j0bf8$hos@dfw-ixnews2.ix.netcom.com>
- References: <4iuni1$oep@lily.csv.warwick.ac.uk> <4ivse7$3p1@news1.h1.usa.pipeline.com>
- NNTP-Posting-Host: chi-il10-16.ix.netcom.com
- X-NETCOM-Date: Sat Mar 23 2:07:04 AM CST 1996
-
- In <4ivse7$3p1@news1.h1.usa.pipeline.com> grantp@usa.pipeline.com(Pete
- Grant) writes:
- >
- >>
- >>I am programming in ms Visual C++ v.4.0 under Win95, and am trying to
- >>persuade it to allow me to draw graphics to a window from a procedure
- >>other than OnPaint or OnDraw.
- >>
- >>I have tried using CPaintDC(this); , but this gives an access
- >>violation.
-
- Try CWindowDC dc(this);
-
- Cheers,
-
- Mark Feldman
-
-